<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      box-sizing: border-box;
      list-style: none;

      padding: 0;
      margin: 0;
    }

    div {
      height: 120px;
      width: 400px;
      background-color: pink;
      margin: auto;
    }

    ul li {
      float: left;

      height: 60px;
      width: 90px;
      background-color: #fff;
      margin-left: -3px;
      margin-top: -3px;
      border: 3px solid transparent;
    }
    ul li:hover{
      position: relative;
      border: 3px solid #005979;
    }
  </style>
</head>

<body>
  <div>
    <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
    </ul>
  </div>
</body>

</html>